using UnityEngine;
using QFramework;
using UnityEngine.Events;

namespace QGameFramework
{
    /// <summary>
    /// 基类组件
    /// </summary>
    public abstract class BaseComponent : MonoBehaviour, IController, ICanSendEvent
    {
        /// <summary>
        /// 初始化组件
        /// </summary>
        public virtual void OnInit()
        {
        }

        /// <summary>
        /// 组件恢复
        /// </summary>
        public virtual void DeInit()
        {
        }

        public IArchitecture GetArchitecture()
        {
            return QGameMain.Interface;
        }
    }
}